import { Application } from 'egg';

export default (app: Application) => {
    const { CHAR, STRING } = app.Sequelize;
    const model = app.model.define('Picture', {
        picture_id: { type: CHAR(32), primaryKey: true },//主键
        user_id: CHAR(32),//用户id
        picture_name: STRING(40),//图片名
        is_delete: CHAR(1),//标识是否删除
    }, { tableName: 't_picture' });
    return model;
};

export class Picture {
    picture_id: string;
    user_id: string;
    picture_name: string;
    is_delete: string;
}